package com.ruoyi.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程章节对象 course_catalog
 * 
 * @author ruoyi
 * @date 2020-10-07
 */
public class CourseCatalog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Integer id;

    /** 排序 */
    @Excel(name = "排序")
    private Long sequence;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDt;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCreateDt(Date createDt) 
    {
        this.createDt = createDt;
    }

    public Date getCreateDt() 
    {
        return createDt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sequence", getSequence())
            .append("name", getName())
            .append("createDt", getCreateDt())
            .toString();
    }
}
